﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebApp.Utility;
using System.Globalization;
using System.Threading;

namespace WebApp.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en");
            ResourcesLibrary.Properties.Resources.Culture = Thread.CurrentThread.CurrentCulture;
            ViewBag.Message = ResourcesLibrary.Properties.Resources.WelcomeMessage;

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
